﻿@model WebApp.Models.T_member

@{
    Layout = "~/Views/Shared/_DialogLayout.cshtml";
}

@using (Html.BeginForm("", "", FormMethod.Post, new { @class = "form-horizontal form-inline", id = "inputform" }))
{
    <div class="dialog-content">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <input type="hidden" id="Id" value="@Model.Id" class="form-control datafield" data-fieldname="Id" />
        <input type="hidden" value="@(Model.Updatetime.HasValue ? Model.Updatetime.Value.ToString("yyyy-MM-dd HH:mm:ss.fff") : "")" class="form-control datafield" data-fieldname="Updatetime" />

        <div class="row">
            <div class="col-xs-12 nopadding">
                <div class="widget-box">
                    <div class="widget-title">
                        <h5>申请者基本信息</h5>
                    </div>
                    <div class="widget-content">
                        <table cellpadding="3" cellspacing="0" border="0" class="inputform">
                            <tr>
                                <td class="td-label"><label for="Username">用户名</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Username", @Model.Username, new { @class = "form-control datafield", @data_fieldname = "Username", style = "width:200px;" })
                                </td>
                                <td class="td-label"></td>
                                <td class="td-control"></td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Name">姓名</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Name", @Model.Name, new { @class = "form-control datafield", @data_fieldname = "Name", style = "width:200px;" })
                                </td>
                                <td class="td-label"><label for="Membertype">身份</label></td>
                                <td class="td-control">
                                    @Html.DropDownList("Membertype", @Model.Membertype, ViewBag.MemberTypeSelectList as SelectList, new { @class = "form-control datafield", @data_fieldname = "Membertype", style = "width:200px;" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Email">邮箱</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Email", @Model.Email, new { @class = "form-control datafield", @data_fieldname = "Email", style = "width:200px;" })
                                </td>
                                <td class="td-label"><label for="Mobile">手机</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Mobile", @Model.Mobile, new { @class = "form-control datafield", @data_fieldname = "Mobile", style = "width:200px;" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="School">学校名称</label></td>
                                <td class="td-control">
                                    @Html.TextBox("School", @Model.School, new { @class = "form-control datafield", @data_fieldname = "School", style = "width:200px;" })
                                </td>
                                <td class="td-label"><label for="Specialty">所属院系</label></td>
                                <td class="td-control">
                                    @Html.TextBox("Specialty", @Model.Specialty, new { @class = "form-control datafield", @data_fieldname = "Specialty", style = "width:200px;" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Address">通信地址</label></td>
                                <td class="td-control" colspan="3">
                                    @Html.TextBox("Address", @Model.Address, new { @class = "form-control datafield", @data_fieldname = "Address", style = "width:350px;" })
                                </td>
                            </tr>
                            @*<tr>
                                <td class="td-label"><label for="Remark">备注</label></td>
                                <td class="td-control">
                                    @Html.TextArea("Remark", @Model.Remark, new { @class = "form-control datafield", @data_fieldname = "Remark", style = "width:200px;" })
                                </td>
                            </tr>*@
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <br />
    </div>
    <div class="dialog-footer">
        <button id="btncancel" class="btn btn-small btn-default">取消</button>
        <button id="btnsave" class="btn btn-small btn-primary">保存</button>
    </div>
}

@section css{
    <style type="text/css">
        .show-grid {
            margin-bottom: 10px;
        }

        .table-bordered {
            border: 1px solid #ddd;
        }
    </style>
}

@section scripts{
    <script type="text/javascript" src="~/Scripts/app/app.validator.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
    <script type="text/javascript" src="~/Scripts/app/member/member.edit.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
}